package imu.g3.service;


import imu.g3.dao.FileDao;
import imu.g3.dao.FileMapper;
import imu.g3.model.MyProjectUploadFiles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileService {

    @Autowired
    private FileMapper fileMapper;
    public List<MyProjectUploadFiles> getAllFiles() {

        List<MyProjectUploadFiles> myProjectUploadFilesList = fileMapper.getAllFiles();

        return myProjectUploadFilesList;
    }

    public int insertFileInfo(MyProjectUploadFiles myProjectUploadFiles){
        int res = fileMapper.insertFileInfo(myProjectUploadFiles);
        return res;
    }
}
